package cn.wzx.service;

import cn.wzx.dao.BlogTypeDao;
import cn.wzx.entity.BlogType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogTypeServiceImpl implements BlogTypeService {
    @Autowired
    BlogTypeDao blogTypeDao;

    @Override
    public void add(BlogType blogType) {
        blogTypeDao.add(blogType);
    }

    @Override
    public List<BlogType> findAll() {
        return blogTypeDao.findAll();
    }

    @Override
    public BlogType findById(String id) {
        return blogTypeDao.findById(id);
    }
}
